package cn.itcast.web.el;

/***
 * itcast.tld  定义的实现类 实现 只显示固定长度的内容
 */
public class ElUtils {
	
	public static String subString(String source,Integer length){
		
		if(source.length()>length){
			return source.substring(0,length) + ".......";
		}
		return source;
	}
	
	
	public static void main(String[] args) {
		String str="abckjdfksd";
		System.out.println(str.substring(0, 2));
	}
	
}
